FROM nginx:1.27.2

# 时区设置
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone

#在构建的过程中更新下 apt 列表
RUN sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list \
        && sed -i 's/security.debian.org/mirrors.163.com/g' /etc/apt/sources.list \
        && apt-get update -y \
        && apt-get install telnet net-tools cron procps -y

# 工作目录
ENV WORK_DIR='/data/project'
WORKDIR $WORK_DIR